#!/usr/bin/python
# encoding: utf-8
'''
@File    :   code.py
@Time    :   2020/03/11 21:54:19
@Author  :   fangkaijin 
@Version :   1.0
@Contact :   fangkaijin@gmail.com
@License :   杭州移动互联
@Desc    :   None
'''

# 导入库包

import sys, os
import requests

r = requests.get('https://juejin.im/timeline')
print(r.status_code)
print(r.text)

#参数
#r = requests.get('https://www.douban.com/search', params={'q': 'python', 'cat': '1001'})



print(r.encoding)

import chardet

chardet.detect(b'hello world')

import psutil
print(psutil.Process)
